<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>【快址网】后台管理</title>
    <link rel="stylesheet" href="/static/common/layui/css/layui.css">
    <link rel="icon" href="/static/common/images/logo.png">

</head>
<body class="layui-layout-body" >
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">【快址网】后台管理</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a id="time"></a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    ${Session.username.name}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/logout.do">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
    <ul class="layui-nav layui-nav-tree" lay-filter="test">
    <#assign text=object />
    <#assign data=text?eval />
    <#list data as obj>
    <li class="layui-nav-item ">
        <a class="" href="javascript:;">${obj.name?default('javascript:;')}</a>
    <dl class="layui-nav-child">
        <#list obj.permissionsList as p>
        <dd>
            <a href="javascript:;" data-id="${p.id}" data-href="${p.url?default('javascript:;')}">${p.name}</a>
        <div style="display: none" id="onelevel-${p.id}">
            <#list p.permissionsList as o>
                <li lay-id="${(o_index+1) * 11}" <#if o_index==0>  class="layui-this" </#if>><a href="javascript:;"  onclick="href_a('${o.url?default('javascript:;')}')" data-href="${o.url?default('javascript:;')}">${o.name}</a></li>
            </#list>
        </div>
            </dd>
        </#list>
        </dl>
        </li>
    </#list>
        </ul>
    </div>
</div>

<div class="layui-body" style="bottom: 0px;top: 46px">
    <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
        <!-- 右侧 顶部导航 start -->
        <ul class="layui-tab-title" id="ul-html">
            <li class="layui-this" lay-id="11"><a href="javascript:;" data-href="/pageManage/banner/list.do">banner列表</a></li>
            <li lay-id="11"><a href="javascript:;" data-href="/pageManage/banner/add.do">添加banner</a></li>
            <li lay-id="11"><a href="javascript:;" data-href="/img/uploader.do">图片上传</a></li>
            <li lay-id="22"><a href="javascript:;" data-href="http://www.qq.com">用户管理</a></li>
            <li lay-id="33"><a href="javascript:;" data-href="http://www.boaishu.com"> 权限分配</a></li>
            <li lay-id="44"><a href="javascript:;" data-href="http://www.zhongxiangspace.com"> 商品管理</a></li>
            <li lay-id="55"><a href="javascript:;" data-href="http://www.zhongxiangspace.com"> 订单管理</a></li>
        </ul>
        <!-- 右侧 顶部导航 end -->

        <!-- 右侧 页面 start -->
        <div class="layui-tab-content">
            <iframe src="http://www.51kuaizhi.com" frameborder="0" style="width:100%; height: 93%;position: absolute;margin:0px;padding: 0px;"></iframe>
        </div>
        <!-- 右侧 页面 end -->
    </div>
</div>

<#--<div class="layui-footer">-->
        <#--© 51kuaizhi.com - 重庆众享科技有限公司-->
    <#--</div>-->
</div>
<script src="/static/common/js/jquery-3.3.1.min.js"></script>
<script src="/static/common/layui/layui.js"></script>
<script src="/static/common/js/timer.js"></script>
<script src="/static/common/js/ajaxhook.js" type="text/javascript"></script>
<script src="/static/common/js/ajaxHookData.js" type="text/javascript"></script>
<script type="text/javascript">
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
    function href_a(href) {
        if (href != '' && href != undefined && href != null) {
            $("iframe").attr("src", href);
        }
    }
    $(document).ready(function () {
        $("#time").timeRun();
        $("a").click(function () {
            var id = $(this).attr("data-id");
            if(id!=null&&id!=''&&id!=undefined){
                var html = $('#onelevel-' + id).html();
                $("#ul-html").html(html);
            }
            var href = $(this).attr("data-href");
            if (href != '' && href != undefined && href != null) {
                $("iframe").attr("src", href);
            }
        });
    });
</script>
</body>
<script src="/static/common/js/ajaxhook.js" type="text/javascript"></script>
<script src="/static/common/js/ajaxHookData.js" type="text/javascript"></script>
</html>